const operatorCode = [{
  code: "01", name: "电信",
}, {
  code: "02", name: "联通",
}, {
  code: "03", name: "移动",
},]

const noCardState = [{
  code: "NOT_OPENED", name: "未开通",
}, {
  code: "FROZEN", name: "冻结中",
}, {
  code: "OPENED", name: "已开通",
},]

const getOperatorName = (code) => operatorCode.find(op => op.code === code)?.name;

const getNoCardStateName = (code) => noCardState.find(op => op.code === code)?.name;


export {operatorCode, noCardState, getOperatorName, getNoCardStateName};